package com.hongdee.crm.workorder.service;

import com.hongdee.crm.insurance.entity.TCrmCarInsurance;
import com.hongdee.crm.workorder.entity.TCrmCarWorkOrder;

import java.util.List;
import java.util.Map;

/**
 * 名  称:ITcrmCarWorkerOrderService
 * 类  型: class
 * 描  述:
 * 路  径:com.hongdee.crm.workorder.service;
 * 作  者: 术洪超
 * 日  期:2017-02-22 15:45
 */
public interface ITCrmCarWorkOrderService {
    /**
     * @param uid   登录用户 ID
     * @param start 起始记录
     * @param limit 页面大小
     * @return Map
     * @throws Exception
     * @desc 通过 JDBCDao分页查询
     * @author 术洪超
     */

    public Map impPage(String uid, String start, String limit) throws Exception;


    /**
     * @param id 要删除数据的主键
     * @return
     * @throws Exception
     * @desc 保存添加的实体内容，通过主键判断
     * @author 术洪超
     */
    public void impDel(String id) throws Exception;

    /**
     * @param id 要核销的数据主键 ID
     * @return
     * @throws Exception
     * @desc 核销数据
     * @author 术洪超
     */
    public void impConfirm(String id, String uid) throws Exception;


    /**
     * @param data 要核销的数据实体
     * @return
     * @throws Exception
     * @desc 核销数据（批量）
     * @author 术洪超
     */
    public void impConfirms(List<Map<Object, String>> data, String uid) throws Exception;


    /**
     * @return
     * @throws Exception
     * @desc 核销数据(全部)
     * @author 术洪超
     */
    public void impConfirmAll(String uid) throws Exception;

    /**
     * 工单查询
     */
    public Map workOrderQuery(String uid,String carId,String companyId,String typePCode,String typeCode) throws Exception;


    /**
     * @return
     * @throws Exception
     * @desc 删除全部待导入数据
     * @author 术洪超
     */
    public void impDelAll(String uid) throws Exception;


    /**
     * @return
     * @throws Exception
     * @desc 删除多条待导入数据
     * @author 术洪超
     */
    public void impDels(List<Map<Object,String>> data, String uid) throws Exception;
    /**
     * @return
     * @throws Exception
     * @desc 根据vin查询app中的工单信息
     * @author 于扬
     */
    public List appVin(String vin, String uid) throws Exception;

}
